# frozen_string_literal: true

module UuidGenerator
  extend ActiveSupport::Concern
  included do
    before_create :generate_uuid

    private

    def generate_uuid
      self.uuid = UUID_INSTANCE.generate
    end
  end
end
